package note1.chapters.chapter5;

public class StaticTest {
	public static int i;
	{
		i = 1;
		System.out.println("实例初始化");
	}
	static {
		i = 2;
		System.out.println("静态块初始化");
	}

	StaticTest() {
		i = 3;
		System.out.println("构造方法初始化");
	}

	public static void main(String[] args) {
		new StaticTest();
		new StaticTest();
	}
}
